﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class global_MainMenu : NormalUserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (SessionManager.CurrentUserMenus != null && !SessionManager.PwdExpired && !SessionManager.PwdNearlyExpired)
        {

            ctrlMainMenu.DataNavigateUrlField = "Url";
            ctrlMainMenu.DataTextField = "Title";
            ctrlMainMenu.DataFieldID = "SiteMapId";
            ctrlMainMenu.DataFieldParentID = "Parent";

            ctrlMainMenu.DataSource = SessionManager.CurrentUserMenus;
            ctrlMainMenu.DataBind();
        }

    }
}
